#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
    int sum = 0;
    int a;
    printf("Enter the number of elements: ");
    scanf("%d", &a);

    int i;
    int arr[10];

    printf("Enter the elements: ");
    for (i = 0; i < 10; i++) {
        scanf("%d", &arr[i]);
    }

    for (i = 0; i < 10; i++)
    {
        sum = sum + arr[i];
    }

    printf("Sum of the elements is: %d", sum);

        return 0;
}

